package com.graduate.bssp.service.impl;

import com.graduate.base.entity.PageInfo;
import com.graduate.bssp.entity.Tvshow;
import com.graduate.bssp.entity.Tvshow;
import com.graduate.bssp.dao.TvshowMapper;
import com.graduate.bssp.service.ITvshowService;
import com.graduate.base.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 电视剧 服务实现类
 * </p>
 *
 * @author yongqiangyao
 * @since 2018-02-05
 */
@Service("tvshowService")
public class TvshowServiceImpl extends BaseServiceImpl<TvshowMapper, Tvshow> implements ITvshowService {
    @Autowired
    private TvshowMapper tvshowMapper;

    @Override
    public Integer selectCountList() {
        return tvshowMapper.selectCountList();
    }

    @Override
    public List<Tvshow> selectTvShowList(PageInfo<Tvshow> pageInfo){
        return tvshowMapper.selectTvshowList(pageInfo);
    }

    @Override
    public boolean inserttvShow(Tvshow tvShow) {
        return tvshowMapper.insertTvshow(tvShow);
    }

    @Override
    public Tvshow findById(int id){
        return tvshowMapper.findById(id);
    }
    @Override
    public Integer updateFilm(Tvshow tvshow){
        return tvshowMapper.updateFilm(tvshow);
    }
    @Override
    public Integer deleteTvshowById(Integer id){
        return tvshowMapper.deleteTvshowById(id);
    }
    @Override
    public Integer selectTvshowCountList(PageInfo<Tvshow> pageInfo){
        return tvshowMapper.selectTvshowCountList( pageInfo);
    }
}
